<!--
 * @Description: 子组件插槽传参
 * @Author: Zhanghan
 * @Date: 2024-11-14 20:38:35
 * @LastEditTime: 2024-11-14 20:56:18
 * @LastEditors: Zhanghan
-->
<template>
  <div>
    <div class="mb-5">内容</div>
    <slot name="list" :list="list" :handleClick="handleClick"></slot>
  </div>
</template>

<script lang="ts" setup>
import { ref } from "vue";

const list = ref(["奥特曼", "迪迦", "泰罗"]);
const handleClick = () => {
  console.log("插槽传递函数");
};
</script>
